<?php foreach ($dr as $product): ?>
<div id="product">
	<div id="img" class="test">
		<img src="<?php echo Yii::app()->getBaseUrl(true); ?>/images/products/<?php echo $product['pid'] ?>/<?php echo $product['url_400'] ?>" />	
	</div>
	<div id="product-inner">
		<h3><?php echo $product['pname'] ?></h3>
		<p class="price">Desde <?php echo $product['price_from'] ?></p>
		<p><?php echo $product['content'] ?></p>
		<p></p>
		<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo Yii::app()->getBaseUrl(true); ?><?php echo $this->createUrl('product/view',array('name'=>$product['sname'], 'id'=>$product['pid'])); ?>"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
	</div>
</div>	
<?php endforeach ?>
<script type="text/javascript" charset="utf-8">
	$('#product-inner li').each(function(i, item){
		if(i%2==0)
			$(this).addClass("odd");
	});
</script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-30048103-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>